<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>菜单管理</title></head>
<body>
<div data-control="Style" src="/webapi/css/common.css"/>
<div data-control="Script" src="./ResourceSearch.js"/>
<div data-control="HandleClass" className="ResourceSearch"/>
<div>
    <div class="search-title">
        <span>菜单管理</span>
        <div data-control="Label" class="add-btn" text="新增" click="{openInsertFrom}"/>
    </div>
    <div data-control="Group" id="queryForm" dataSource="" class="search-query">
        <div class="search-row">
<span class="col-xs-1">菜单名称</span><div class="col-xs-2" data-control="TextInput" path="name"/>
<span class="col-xs-1">菜单链接</span><div class="col-xs-2" data-control="TextInput" path="url"/>
<span class="col-xs-1">上级菜单</span><div class="col-xs-2" data-control="TextInput" path="parentname"/>
<span class="col-xs-1">菜单类型</span><div class="col-xs-2" data-control="TextInput" path="type"/>
</div>

        <div class="search-btn col-xs-12">
            <div data-control="Label" text="取消" click="{clearQueryForm}" class="query-button"/>
            <div data-control="Label" text="查询" click="{subimtQueryForm}" class="query-button"/>
        </div>
    </div>
    <div data-control="ComponentDataGrid" class="search-table" id="searchTable" dataSource="/resource/query.do" rowNum="10">
        <div class="table-handler">
            <span class="col-xs-1">序号</span>
            <span class="col-xs-1">菜单名称</span>
<span class="col-xs-1">菜单链接</span>
<span class="col-xs-1">上级菜单</span>
<span class="col-xs-1">菜单类型</span>

            <span class="col-xs-1">操作</span>
        </div>
        <div data-control="Group" class="table-row" id="row">
            <div data-control="Label" class="col-xs-1" path="rownum"/>
            <div data-control="Label" class="col-xs-1" path="id"/><div data-control="Label" class="col-xs-1" path="name"/><div data-control="Label" class="col-xs-1" path="url"/><div data-control="Label" class="col-xs-1" path="parentid"/><div data-control="Label" class="col-xs-1" path="parentname"/><div data-control="Label" class="col-xs-1" path="type"/>
            <div class="col-xs-1">
                <div data-control="Label" text="编辑" click="{openUpdateFrom}" class="opt-button"/>
                <div data-control="Label" text="详情" click="{openDetailFrom}" class="opt-button"/>
                <div data-control="Label" text="删除" click="{delete}" class="opt-button"/>
            </div>
        </div>
    </div>
</div>

<div data-control="Group" id="groupTable" style="display: none;" dataSource="/resource/insert.do" class="search-query">
    <div class="search-row">
<span class="col-xs-3">菜单名称</span><div class="col-xs-9" data-control="TextInput" path="name"/></div><div class="search-row">
<span class="col-xs-3">菜单链接</span><div class="col-xs-9" data-control="TextInput" path="url"/></div><div class="search-row">
<span class="col-xs-3">上级菜单</span><div class="col-xs-9" data-control="TextInput" path="parentname"/></div><div class="search-row">
<span class="col-xs-3">菜单类型</span><div class="col-xs-9" data-control="TextInput" path="type"/></div>
    <div class="search-btn">
        <div data-control="Label" text="取消" click="{WinUtil.closeDialog}" class="query-button"/>
        <div data-control="Label" id="submitBtn" click="{submitGroup}" text="确定" class="query-button"/>
    </div>
</div>

</body>
</html>
